package models;

import javax.persistence.Entity;
import play.db.jpa.Model;
import play.data.validation.Required;

@Entity
public class EtatCandid extends Model{
	
	@Required
	public String nom;
	
	public String getNom() {
		return nom;
	}

	@Required
	public Integer numEtat;
	
	public Integer getNumEtat() {
		return numEtat;
	}

	public void setNumEtat(Integer numEtat) {
		this.numEtat = numEtat;
	}

	public EtatCandid(String nom,Integer numEtat){
		this.nom=nom;
		this.numEtat=numEtat;
	}
	
	public String toString(){
		return nom;
	}
	
}
